package mobao.feign.service;

import mobao.feign.entity.SysLogEntity;
import mobao.utils.Result;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * Created by yanghongquan on 2018/9/14 14:38
 */
@FeignClient(name = "mobao-log-demo",fallback = SysLogFallBack.class)
public interface SysLogService {

    @RequestMapping(value = "/log/save",method = RequestMethod.POST)
    public Result save (@RequestBody SysLogEntity entity);

    @RequestMapping(value = "/log/list",method = RequestMethod.GET)
    public Result list(@RequestParam Map<String, Object> params);

}
